import request from '@/utils/request'

/**
 * Obtain authentication status
 * @param {*} data
 * @returns
 */
export function getAuthStatus(data) {
  return request({
    url: '/api/getAuthStatus',
    method: 'post',
    data
  })
}

/**
 * Obtain oss-sts-token
 * @param {*} data
 * @returns
 */
export function getSTSToken(data) {
  return request({
    url: '/api/getSTSToken',
    method: 'post',
    data
  })
}

/**
 * KYC Obtaining authentication example information
 * @param {*} data
 * @returns
 */
export function getKycEg(data) {
  return request({
    url: '/api/getKycEg',
    method: 'post',
    data
  })
}

/**
 * KYC authentication - Step 1: Fill in the name
 * @param {*} data
 * @returns
 */
export function startAuth(data) {
  return request({
    url: '/api/startAuth',
    method: 'post',
    data
  })
}

/**
 * KYC authentication - Step 2: Upload the certificate
 * @param {*} data
 * @returns
 */
export function uploadIdCard(data) {
  return request({
    url: '/api/uploadIdCard',
    method: 'post',
    data
  })
}


export function isBindEmail(data) {
  return request({
    url: '/api/isBindEmail',
    method: 'post',
    data
  })
}
// 
export function sendEmail(data) {
  return request({
    url: '/registerEmail/sendEmail',
    method: 'post',
    data
  })
}